extends Control

@onready var static_setting: Node = $static_machine/static_setting
@onready var static_input: Node = $static_machine/static_input
@onready var static_output: StateBase = $static_machine/static_output

@onready var menu: Control = %menu
@onready var output: Control = $output
@onready var input: Control = $input
@onready var setting: Control = $setting


func _ready() -> void:
	init_setting()

# 将三大场景全部隐藏,但是menu显示
func init_setting()->void:
	menu.visible = true
	output.visible = false
	input.visible = false
	setting.visible = false

#  当输入按键被按下
func _on_menu_input_button_pressed() -> void:
	static_input._entry()

# 当输出按钮被按下
func _on_menu_output_button_pressed() -> void:
	output._entry()
